Skip to content

fix: only show signup flash to newly created members - #2789

Merged
mroderick merged 1 commit into
masterfrom
2788-signup-flash
Aug 7, 2026
Merged

fix: only show signup flash to newly created members#2789
mroderick merged 1 commit into
masterfrom
2788-signup-flash

Conversation

@mroderick

Copy link
Copy Markdown
Collaborator

Summary

Returning members routed to the "Almost there..." details page (because their profile is incomplete) were still told "Thanks for signing up", even though no new account was created. The signup flash now shows only for members actually created during the OAuth callback; existing members land on the details page with no misleading message.

Test plan

Extended auth_services_callback_spec.rb and the details controller spec to cover both cases. The browser feature test for a genuine new signup still shows the flash. 21 examples, 0 failures; RuboCop clean.

Fixes #2788

The details page flashed "Thanks for signing up" to every incomplete
member, including returning accounts sent there to finish their
profile. Track whether the member was actually created during the OAuth
callback (session[:new_member]) and gate the flash on it, so returning
members land on the details page with no misleading signup message.
@mroderick
mroderick marked this pull request as ready for review August 6, 2026 16:20

@KimberleyCook KimberleyCook left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃帀

@mroderick
mroderick merged commit 18e7f45 into master Aug 7, 2026
20 of 37 checks passed
@mroderick
mroderick deleted the 2788-signup-flash branch August 7, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do not show "Thanks for signing up" flash to existing members completing their profile

2 participants